package com.dingyh.shopwebbackground.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Tolerate;

/**
 * <p>
 * 
 * </p>
 *
 * @author dingyuhan
 * @since 2023-02-13
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = false)
public class User implements Serializable {


    @Tolerate
    public User() {
    }

    private static final long serialVersionUID=1L;

    private String id;

    private String nickname;

    private String tel;

    private String mail;

    private String pwd;

    private String avatar;

    private BigDecimal money;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long timeadd;

    private String role;

    /**
     * value: '1','仅禁止通话',
value: '2', '仅禁止评论' ,
value: '3', '禁止通话且禁止评论' },
     */
    private String disable;

    @TableField(exist = false)
    private String addressDetail;

    /**
     * 店铺地址省
     */
    @TableField(exist = false)
    private String province;

    /**
     * 市
     */
    @TableField(exist = false)
    private String city;

    /**
     * 区
     */
    @TableField(exist = false)
    private String area;

}
